package com.example.base.net

import com.example.base.entity.NoticeBean
import com.example.base.entity.Res
import com.example.base.entity.VisitEntity
import retrofit2.http.GET
import retrofit2.http.Path
import retrofit2.http.Query

interface ApiService {

    @GET("/api/announcements")
    suspend fun getNotice(@Query("page")page:Int, @Query("size")size:Int): Res<NoticeBean>

    @GET("/api/visit-appointments")
    suspend fun getVisit():Res<VisitEntity>

    @GET("/api/visit-appointments/status/{status}")
    suspend fun getType(@Path("status")status:String):Res<VisitEntity>
}